package com.sh.common.model;

/**
 * 
 * NOTE： 分页Model
 *
 * @author： king
 * @date： 2019年4月1日
 *
 */
public class PageModel {

	private Integer page;
	private Integer rows = 10;
	private Integer start;
	private Long total;
	private Object data;
	
	public PageModel(Integer page) {
		super();
		this.page = page;
		this.start = (page - 1) * rows;
	}
	
	public PageModel(Integer page, Integer rows) {
		super();
		this.page = page;
		this.rows = rows;
		this.start = (page - 1) * rows;
	}
	
	public Integer getPage() {
		return page;
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public Integer getRows() {
		return rows;
	}
	public void setRows(Integer rows) {
		this.rows = rows;
	}
	public Integer getStart() {
		return start;
	}
	public Long getTotal() {
		return total;
	}
	public void setTotal(Long total) {
		this.total = total;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	
}
